import http from "@/utils/request";

export default{
    /**
     * 查询列表
     * @param  params
     * @returns
     */
    async getList(params){
        return await http.get("/api/scKgjsj/list",params);
    },
    /**
    * 添加
    * @returns
    */
    async add(params){
        return await http.post("/api/scKgjsj/add",params)
    },
    /**
    * 修改
    * @returns
    */
    async update(params){
        return await http.put("/api/scKgjsj/update",params)
    },

    //删除
    async delete(params) {
        return await http.delete('/api/scKgjsj/delete', params);

    },
    //井间抽制度1数据
    async getJjczdsj(params){
      return await http.get("/api/pcWellIntermittentTakeInstitution/list",params);
    },
    async jjczdsjAdd(params){
      return await http.post("/api/pcWellIntermittentTakeInstitution/add",params)
    },
    async jjczdsjUpdate(params){
      return await http.put("/api/pcWellIntermittentTakeInstitution/update",params)
    },
    async jjczdsjDelete(params){
      return await http.delete("/api/pcWellIntermittentTakeInstitution/delete",params)
    },
    //四类井巡检数据
    async getSljxjsj(params){
      return await http.get("/api/sljxjsj/list",params);
    },
    async sljxjsjAdd(params){
      return await http.post("/api/sljxjsj/add",params)
    },
    async sljxjsjUpdate(params){
      return await http.put("/api/sljxjsj/update",params)
    },
    async sljxjsjDelete(params){
      return await http.delete("/api/sljxjsj/delete",params)
    },

    //干气日报
    async getGqrb(params){
      return await http.get("/api/yslyttrqyltjb/list",params);
    },
    //电量日报
    async getDlrb(params){
      return await http.get("/api/yslyttrqyltjb/listYdltjb",params);
    },
    //湿气日报
    async getSqrb(params){
      return await http.get("/api/yslyttrqyltjb/listZcqylrbb",params);
    },
}
